<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1 , minimum-scale=1.0,maximum-scale =1.0,user-scalable=no">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>收款</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="../css/money.css">
<link rel="stylesheet" type="text/css" href="../css/mui.css">
<script type="text/javascript" src="../js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="../js/jquery.params.js"></script>
<script type="text/javascript" src="../js/layer/layer.js"></script>
<link rel="stylesheet" href="../js/layer/skin/layer.css" id="layuicss-skinlayercss">
<script type="text/javascript">
	$(function(){
		openID = localStorage.getItem("ll_openID");
		$.ajax({
			url : '../llPay/getCards',
			type : 'post',
			data : {
				'openID' : openID,
				'cardType' : 'debitCard'
			},
			success : function(res){
				$('#nowFee').html("0.00"+(res[0].fee0*10));
			}
		})
	})
	var str = "";
	function getName(num) {
		if (str.indexOf('.') != -1 && num == '.') {
			num = '';
		}
		if (num == "a") {
			if (str.length > 0) {
				str = str.substring(0, str.length - 1);
			} else {
				str = "";
			}
		} else if (str.length == 0 && num == '.') {
			str = '';
		} else {
			str += num;
		}
		if (str.indexOf('.') != -1) {
			str += '';
			$(".money").text("¥ " + str);
		} else {
			$(".money").text("¥ " + str + ".00");
		};
		if (str.substring(0, 2) == "00") {
			str = '';
		};

		if (str == "") {
			$(".money").text("￥0.00");
		}
	};
	function Article() {
		var myDate = new Date();
        var currentTime = myDate.getHours() + "" + myDate.getMinutes();
		if(currentTime > 2130){
			layer.confirm('21:30以后支付，下一个工作日到账！', {
				  btn: ['确定', '取消'] //可以无限个按钮
				  ,btn2: function(index, layero){
					  layer.close(index);
				  }
				}, function(index, layero){
					if (str != "" && str != "￥0.00") {
						//存储money
						localStorage.setItem("ll_payMoney", str);
						if (str >= 100 && str <= 20000) {
							window.location.href = "xuanzezhifukapian.html";
						} else {
							layer.msg("金额只能在100~20000之间");
						}
					} else {
						layer.msg("请输入金额！");
					}
				});
		}else{
			if (str != "" && str != "￥0.00") {
				//存储money
				localStorage.setItem("ll_payMoney", str);
				if (str >= 100 && str <= 20000) {
					window.location.href = "xuanzezhifukapian.html";
				} else {
					layer.msg("金额只能在100~20000之间");
				}
			} else {
				layer.msg("请输入金额！");
			}
		}
		/*  */
	}
</script>
</head>

<body>
	<div>
		<marquee style="background-color:#33a3dc; color:#fff; padding-top: 0.5em;">
			<label style="color:yellow;">当前费率(有积分):</label>
			<label id="nowFee" style="color:yellow;"></label>
			<label>最低费率:0.0039</label>
		</marquee>
		<div class="head">
			<div>
				<div class="money">￥ 0.00</div>
				<div class="money_xian"></div>
			</div>
		</div>
		<div style="padding-top: 16%; padding-left: 5px;">
			<div class="nubmer" onclick="getName('1',this)"
				style="text-align: center;">1</div>
			<div class="nubmer" onclick="getName('2',this)">2</div>
			<div class="nubmer" onclick="getName('3')">3</div>
			<div class="nubmer" onclick="getName('4')">4</div>
			<div class="nubmer" onclick="getName('5')">5</div>
			<div class="nubmer" onclick="getName('6')">6</div>
			<div class="nubmer" onclick="getName('7')">7</div>
			<div class="nubmer" onclick="getName('8')">8</div>
			<div class="nubmer" onclick="getName('9')">9</div>
			<div class="nubmer" onclick="getName('0')">0</div>
			<div class="nubmer" onclick="getName('.')">.</div>
			<div class="nubmer" onclick="getName('a')">
				<img alt="" src="/img/icon_empty.png">
			</div>
		</div>
	</div>
	<div class="btn_shoukan" onclick="Article()">
		<div>
			<img alt="" src="../img/btn_shoukuan.png">
		</div>
		<div class="shoukanFont">收款</div>
	</div>
	
	
</body>
</html>